package com.sloera.springcloud.payment.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sloera.springcloud.payment.entity.Payment;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author sloera
 * @since 2020-08-04
 */
public interface PaymentService extends IService<Payment> {
    /**
     * 新增一条数据
     */
    public int create(Payment payment);

    /**
     * 根据id查询一条数据
     */
    public Payment getPaymentById(@Param("id") long id);

    /**
     * 分页
     *
     * @param page 必须为第一个参数
     * @param serial 其它参数
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.sloera.springcloud.payment.entity.Payment>
     * @date 2020-8-7
     */
    IPage<Payment> selectPaymentPage(Page<Payment> page, String serial);
}
